Skip to content

Fix broken head metadata on contribute-to-opensource page - #778

Open
GuillermoBarreto wants to merge 2 commits into
firstcontributions:mainfrom
GuillermoBarreto:fix/contribute-page-head-metadata
Open

GuillermoBarreto wants to merge 2 commits into
firstcontributions:mainfrom
GuillermoBarreto:fix/contribute-page-head-metadata

Conversation

@GuillermoBarreto

Copy link
Copy Markdown

What

Fixes broken head metadata on src/pages/contribute-to-opensource.astro (the page does not use the shared Layout.astro, so it missed the fixes there):

  • Canonical URL was written as <meta rel="canonical">, which search engines ignore. Changed to <link rel="canonical">, matching Layout.astro.
  • og:image, twitter:image, and the Schema.org image pointed at /assets/preview-image.jpg, which does not exist in the repo. Pointed them at the existing /og-image.svg (the same image Layout.astro uses by default).
  • The favicon link pointed at /assets/first-contributions-logo.svg (also missing) and declared type="image/png" for an SVG. Pointed it and the Schema.org publisher logo at the existing /favicon.svg with the correct image/svg+xml type.

Why

Link previews for this page currently resolve to a missing image, the page has no effective canonical URL, and its favicon link is broken. No visible page content changes; only <head> metadata.

@GuillermoBarreto

Copy link
Copy Markdown
Author

Added one more commit to this PR: the JSON-LD description on this page was two sentences concatenated without a space ("...and expert tips.Learn how to contribute..."), repeating the meta description. It now uses the same single description as the rest of the page's head metadata. No visible content change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant